/**
 * @作者:黎谢之
 * @创建时间：2021/7/7
 * @修改时间：2021/7/10
 */
package com.example.senior_bug.controller;

import com.example.senior_bug.ToolClass.Result;
import com.example.senior_bug.Service.ChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
@RequestMapping("/Channel")
public class ChannelController {
    @Autowired
    private ChannelService channelService;

    //获取所有的一级分类
    @RequestMapping("/getAll")
    public Result GetAllChannel() {
        return channelService.GetAllChannel();
    }

}
